package business

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ BusinessModel = (*customBusinessModel)(nil)

type (
	// BusinessModel is an interface to be customized, add more methods here,
	// and implement the added methods in customBusinessModel.
	BusinessModel interface {
		businessModel
	}

	customBusinessModel struct {
		*defaultBusinessModel
	}
)

// NewBusinessModel returns a model for the database table.
func NewBusinessModel(conn sqlx.SqlConn) BusinessModel {
	return &customBusinessModel{
		defaultBusinessModel: newBusinessModel(conn),
	}
}
